package observer;

public class Base {
    public static void main(String[] args) {
        Child child = new Child();

        while (!child.isCry()){

            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            child.wakeup();
        }
    }
}
